<?php
/**
 * Created by PhpStorm.
 * User: Yangxufeng
 * Date: 2018/8/28
 * Time: 16:57
 */

namespace app\index\validate;

class MessageValidate extends BaseValidate
{
    protected $rule = [
        'title' => 'require|max:30',
        'contents' => 'require|max:200',
        'form' => 'require',
        'recive_user' => 'isPositiveInt',
        'send_user' => 'isPositiveInt',
        'is_read' => 'zeroOrOne',
        'status' => 'zeroOrOne',
        'primary_key' => 'isPositiveInt'
    ];
}
